<?php
class Staticizer_News_Interview extends Staticizer
{
    public function Build($param=NULL)
    {
        #获取数据
        $data=DB::GetRows('select ID,Title,M_HTMLFile from Interview order by Datetime desc limit 0,1');

        #处理数据
        foreach($data as &$row)
        {
            $row['M_HTMLFile']=Config::PATH_RELATIVE_CONTENT_INTERVIEW.'/'.$row['M_HTMLFile'];
        }

        #绑定数据
        View::Assign('Interviews',$data);

        #生成静态
        $this->Save('news/public.interview.html',View::Fetch('news/public.interview.tpl'));
    }
}
?>